package br.ufrn.opencopi.graph;

import br.cnpq.webflowah.beans.ServicoSemantico;
import br.cnpq.webflowah.beans.Operacao;

public class ServiceVertex extends Vertex {

	private String uri;

	private boolean isRollbackable;

	private boolean isCompActionable;

	private ServicoSemantico servico;
	
	private Operacao operacao;

	public Operacao getOperacao() {
		return operacao;
	}

	public void setOperacao(Operacao operacao) {
		this.operacao = operacao;
	}

	public ServiceVertex(int id, String uri, ServicoSemantico servico, boolean isRollbackable, boolean isCompActionable){
		this.uri = uri;
		this.servico = servico;
		this.isRollbackable = isRollbackable;
		this.isCompActionable = isCompActionable;
		this.id = id;
	}

	public ServiceVertex(int id, ServicoSemantico servico, String uri){
		this.uri = uri;
		this.servico = servico;
		this.isRollbackable = false;
		this.isCompActionable = false;
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public ServicoSemantico getServico() {
		return servico;
	}

	public void setServico(ServicoSemantico servico) {
		this.servico = servico;
	}

	public boolean isRollbackable() {
		return isRollbackable;
	}

	public String getUri() {
		return uri;
	}

	public boolean isCompActionable() {
		return isCompActionable;
	}

}
